namespace net_work.Common.Request;

public class PagedRequest
{
    public PagedRequest(int pageNumber, PageSizeEnum pageSize, List<FilterCondition>? filters)
    {
        PageNumber = pageNumber;
        PageSize = pageSize;
        Filters = filters;
    }

    public PagedRequest()
    {
    }

    /// <summary>
    /// 页当前码，默认为 1
    /// </summary>
    public int PageNumber { get; set; } = 1;

    /// <summary>
    /// 每页数量，默认为 10
    /// </summary>
    public PageSizeEnum PageSize { get; set; } = PageSizeEnum.Ten;

    /// <summary>
    /// 过滤条件
    /// </summary>
    public List<FilterCondition>? Filters { get; set; }
}

// 定义 PageSize 枚举
public enum PageSizeEnum
{
    Ten = 10,
    Twenty = 20,
    Fifty = 50,
    Unlimited = -1
}